// 定义全局常量
import 'package:flutter/material.dart';

ThemeData lightThemeData = ThemeData(
  primaryColor: const Color.fromRGBO(55, 117, 253, 1),
  scaffoldBackgroundColor: const Color.fromRGBO(255, 255, 255, 1),
  colorScheme: const ColorScheme(
    brightness: Brightness.light,
    primary: Color.fromRGBO(55, 117, 253, 1),
    onPrimary: Color.fromRGBO(18, 34, 62, 1),
    onPrimaryContainer: Color.fromRGBO(245, 247, 251, 1),
    secondary: Color.fromRGBO(191, 192, 194, 1),
    onSecondary: Color.fromRGBO(255, 255, 255, 1),
    error: Color.fromRGBO(243, 105, 183, 1),
    onError: Color.fromRGBO(255, 255, 255, 1),
    surface: Color.fromRGBO(240, 242, 248, 1),
    onSurface: Color.fromRGBO(18, 34, 62, 1),
  ),
  // appBar 样式
  appBarTheme: const AppBarTheme(
    // 标题是否居中
    centerTitle: true,
    // appBar 背景色
    backgroundColor: Color.fromRGBO(255, 255, 255, 1),
    // 标题文本样式
    titleTextStyle: TextStyle(
      // 标题颜色
      color: Color.fromRGBO(18, 34, 62, 1),
    ),
  ),
);
ThemeData darkThemeData = ThemeData();
